<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="familiares index">
	<h2><?php __('Familiares');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('primer_nombre');?></th>
			<th><?php echo $this->Paginator->sort('segundo_nombre');?></th>
			<th><?php echo $this->Paginator->sort('primer_apellido');?></th>
			<th><?php echo $this->Paginator->sort('segundo_apellido');?></th>
			<th><?php echo $this->Paginator->sort('estado_civil');?></th>
			<th><?php echo $this->Paginator->sort('nivel_escolaridad');?></th>
			<th><?php echo $this->Paginator->sort('leer');?></th>
			<th><?php echo $this->Paginator->sort('escribir');?></th>
			<th><?php echo $this->Paginator->sort('ocupacion');?></th>
			<th><?php echo $this->Paginator->sort('telefono');?></th>
			<th><?php echo $this->Paginator->sort('parentesco');?></th>
			<th><?php echo $this->Paginator->sort('direccion');?></th>
			<th><?php echo $this->Paginator->sort('acudiente');?></th>
			<th><?php echo $this->Paginator->sort('vive');?></th>
			<th><?php echo $this->Paginator->sort('aporta');?></th>
			<th><?php echo $this->Paginator->sort('estudiante_id');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($familiares as $familiare):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $familiare['Familiare']['id']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['primer_nombre']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['segundo_nombre']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['primer_apellido']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['segundo_apellido']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['estado_civil']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['nivel_escolaridad']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['leer']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['escribir']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['ocupacion']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['telefono']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['parentesco']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['direccion']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['acudiente']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['vive']; ?>&nbsp;</td>
		<td><?php echo $familiare['Familiare']['aporta']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($familiare['Estudiante']['id'], array('controller' => 'estudiantes', 'action' => 'view', $familiare['Estudiante']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $familiare['Familiare']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $familiare['Familiare']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $familiare['Familiare']['id']), null, sprintf(__('Esta seguro que desea eliminar a # %s?', true), $familiare['Familiare']['nombre_completo'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de %count% en total, empieza con el registro %start%, termina en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>